From 8e8627a258917f7ede82add331b95a3f9f1337db Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Thu, 1 Jun 2023 15:43:46 -0400 Subject: android: Don't crash the app when selecting a zip that causes a SecurityException --- .../app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt index ed3c0f58e..528011d7f 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/GpuDriverHelper.kt @@ -103,7 +103,11 @@ object GpuDriverHelper { ) // Unzip the driver. - unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!) + try { + unzip(driverInstallationPath + DRIVER_INTERNAL_FILENAME, driverInstallationPath!!) + } catch (e: SecurityException) { + return + } // Initialize the driver parameters. initializeDriverParameters(context) -- cgit v1.2.3